package com.group.eams.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group.eams.pojo.dto.AssetClaimQueryDto;
import com.group.eams.pojo.entity.AssetAllocate;
import com.group.eams.pojo.entity.AssetClaim;
import com.group.eams.pojo.vo.AssetClaimListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 恩哲欣
* @description 针对表【asset_claim(资产申领表)】的数据库操作Mapper
* @createDate 2024-10-29 16:09:34
* @Entity com.group.eams.pojo.entity.AssetClaim
*/
public interface AssetClaimMapper extends BaseMapper<AssetClaim> {
    // 分页查询资产申领
    Page<AssetClaimListVo> findAssetClaimByWhere(Page<AssetClaimListVo> page, @Param("assetClaimQueryDto")AssetClaimQueryDto assetClaimQueryDto);

    // 根据申请单号批量获取外键asset_id
    List<Long> getAssetIds(String applicationNum);
    // 根据申请单号查询
    AssetClaim findClaimByNum(String applicationNum);
}
